package com.cblz.bd.database.spring.boot.starter.configure;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

/**
 * {@code @Name:} StdoutLogger
 * {@code @Description: } 控制台打印格式
 * {@code @Author:} by yanjieping
 * {@code @CreateDate:} 2022/12/27 - 周二
 */
@Slf4j
public class StdoutLogger extends com.baomidou.mybatisplus.extension.p6spy.StdoutLogger {

    public StdoutLogger() {
        super();
    }

    @Override
    public void logText(String text) {
        log.info(StringUtils.LF + "数据库查询语句：" + StringUtils.LF + text);
    }
}
